package com.zelin.common.exception;

import org.omg.CORBA.UNKNOWN;

/**
 * Created by WF on 2020/12/27 20:32
 * 定义枚举，用于进行错误码与信息的定义
 */
public enum  BizCodeEnum {
    UNKNOWN_EXCEPTION(100000,"系统未知异常"),
    VALID_EXCEPTION(100001,"参数格式校验失败"),
    PRODUCT_UP_EXCEPTION(11000,"商品上架异常");
    private int code;
    private String message;
    private BizCodeEnum(int code,String message){
        this.code= code;
        this.message = message;
    }
    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
